package com.haixiaoke.flat.lock.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import com.haixiaoke.auth.AuthCheck;
import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.common.core.page.TableDataInfo;
import com.haixiaoke.saas.common.utils.poi.ExcelUtil;
import com.haixiaoke.saas.lock.domain.LockOperatingRecord;
import com.haixiaoke.saas.lock.service.ILockOperatingRecordService;
import com.haixiaoke.saas.system.BaseController;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 锁操作记录Controller
 *
 * @author xiaolong
 * @date 2025-04-11
 */
@RestController
@RequestMapping("/front/flat/lock/operatingRecord")
public class FlatLockOperatingRecordController extends BaseController {
    @Autowired
    private ILockOperatingRecordService lockOperatingRecordService;

    /**
     * 查询锁操作记录列表
     */
    @GetMapping("/list")
    @AuthCheck
    public TableDataInfo list(LockOperatingRecord lockOperatingRecord) {
        startPage();
        List<LockOperatingRecord> list = lockOperatingRecordService.selectLockOperatingRecordList(lockOperatingRecord);
        return getDataTable(list);
    }
}
